home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global SaveImage, MEnCours, flag, gDel, NomImage, CurrentImage
- if ((SaveImage = -1) and (soundBusy(1) = 0) and (NomImage <> "L30")) or ((NomImage = "L30") and (CurrentImage > 11)) then
- waitfor(40)
- set the castNum of sprite 48 to the number of member "Roll Dummy"
- set the locH of sprite 48 to -10
- set the locV of sprite 48 to -10
- set MEnCours to 0
- set cnum to the number of member ("M" & NomImage & "Z0.JPG") of castLib "zoomMaj"
- set the castNum of sprite 4 to cnum
- set the rect of sprite 4 to rect(43, 14, 498, 469)
- updateStage()
- pause()
- else
- go(the frame)
- end if
- end
-
- on idle
- global gListeRollover, gNumRubrique, gCurMaj, gCurseurLoupeIn, gCurseurMainUp, NomImage, CurrentImage, SaveImage, NomRep, flag, gDel
- if rollOver(47) then
- cursor(gCurMaj)
- else
- RollManitool()
- end if
- if (SaveImage = -1) and (NomImage <> "L30") then
- exit
- end if
- set cname to "M" & NomImage & "Z" & CurrentImage
- set cnum to the number of member ("M" & NomImage & "Z" & CurrentImage & ".JPG") of castLib "zoomMaj"
- if CurrentImage = 0 then
- set the visible of sprite 4 to 1
- set the visible of sprite 3 to 1
- updateStage()
- puppetSound(1, cast (cname & "S"))
- updateStage()
- set CurrentImage to CurrentImage + 1
- else
- if (soundBusy(1) = 0) or (NomImage = "L30") then
- set flag to not flag
- if NomImage = "L30" then
- waitfor(120)
- else
- waitfor(60)
- end if
- set SaveImage to 0
- if cnum > 0 then
- set the castNum of sprite 4 to cnum
- set the rect of sprite 4 to rect(43, 14, 498, 469)
- set SaveImage to CurrentImage
- updateStage()
- set cname to "M" & NomImage & "Z" & CurrentImage
- if NomImage <> "L30" then
- preLoad(cast (cname & "S"))
- puppetSound(1, cast (cname & "S"))
- end if
- else
- set SaveImage to -1
- updateStage()
- end if
- set CurrentImage to CurrentImage + 1
- end if
- end if
- end
-